.overlay {
  position: fixed;
  z-index: 110;
  inset: 0;
  background-color: rgb(0 0 0 / 50%);
}

.root {
  position: fixed;
  z-index: 111;
  inset: 0;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;

  max-width: 590px;
  height: 100%;
  margin: 15px auto 0;
  padding: 0 0 24px;
  padding-inline: 12px;

  .card {
    overflow-y: auto;
    height: 100%;
    padding: 0 0 24px;
    border: 1px solid var(--color-dark-500);

    .header {
      display: flex;
      flex-direction: row;
      gap: 0;
      align-items: center;
      justify-content: space-between;

      padding: 18px 24px;

      border-bottom: 1px solid var(--color-dark-500);

      .button {
        cursor: pointer;

        position: relative;

        margin: 0;
        padding: 0;

        background-color: transparent;
        border: none;
        outline: none;
      }
    }

    .content {
      overflow-y: auto;
      max-height: 590px;
      padding: 24px 24px 0;

      &::-webkit-scrollbar {
        width: 8px;
        background-color: transparent;
      }

      &::-webkit-scrollbar-thumb {
        background-color: var(--color-dark-300);
        border-radius: 3px;

        &:hover {
          background-color: var(--color-dark-100);
        }
      }
    }
  }
}

.crossButton {
  &::before {
    width: 32px;
    height: 32px;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.overlay[data-state='open'],
.window[data-state='open'] {
  animation: fade-in 200ms ease-out;
}

.overlay[data-state='closed'],
.window[data-state='closed'] {
  animation: fade-out 200ms ease-in;
}
